package com.ljy.tkuser.client;

import com.ljy.tkuser.entity.LjyZhuanshuoAnswerUser0;
import com.ljy.tkuser.entity.Teacher;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@Component
@FeignClient("ljy-tkmodel")
public interface TkClient {
    @GetMapping("getUserAnswers")
    public ArrayList<LjyZhuanshuoAnswerUser0> getUserAnswers( HttpServletRequest request);

    @GetMapping("/teacher/queryConditionTeacher")
    public List<Teacher> queryConditionTeacher(@RequestParam(value = "Map",required = false)Map map);
}
